package com.itheima.service;

import com.alibaba.druid.sql.PagerUtils;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.Map;

public interface RoleService {


	PageResult findAll(QueryPageBean queryPageBean);


	Role findById(Integer id);

	Map<String, Object> findPermAndMenu();

	void update(Role role, Integer[] permissionIds, Integer[] menuIds);

	void add(Role role, Integer[] permissionIds, Integer[] menuIds);

	void delete(Integer id);
}
